package com.glsc.ngateway.platform.repo;

import com.glsc.ngateway.platform.domain.FlowFormDevManage;
import com.glsc.ngateway.platform.domain.FlowFormTaskDetail;
import com.glsc.ngateway.platform.dto.FlowParamDevManageSearchDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface DevTaskDetailRepository extends JpaRepository<FlowFormTaskDetail, Long>, JpaSpecificationExecutor<FlowFormTaskDetail> {
    List<FlowFormTaskDetail> findByProcessId(String processId);

    List<FlowFormTaskDetail> findAllByBeDeletedAndGiteeIdentNotNullAndGiteeDataBaseIdNotNullAndGiteeDataBaseBranchStatusIsNull(Integer noDelete);

    List<FlowFormTaskDetail> findAllByBeDeletedAndTaskPersonAccount(Integer noDelete, String account);

    List<FlowFormTaskDetail> findAllByProcessIdIn(List<String> requireIdList);
}
